/*******************************************************************************

    Copyright (C) Device VM Inc. All rights reserved.

    FileName:    GdiplusHelper.cpp
    CreateTime:  2009-08-18
    Description: Used to call GdiplusStartup() and GdiplusShutdown() automatically.

    Version history:



*******************************************************************************/


#include "StdAfx.h"
#include "GdiplusHelper.h"

#include <Gdiplus.h>
#pragma comment(lib, "Gdiplus.lib")
using namespace Gdiplus;


GdiplusHelper::GdiplusHelper()
{
    GdiplusStartupInput gsi;
    GdiplusStartup(&m_pulGdiplusToken, &gsi, NULL);
}

GdiplusHelper::~GdiplusHelper()
{
    GdiplusShutdown(m_pulGdiplusToken);
}

// The unique object of GdiplusHelper.
GdiplusHelper theGdiplusHelper;
